import { createApp, VueElement } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

// import './plugin/axiosInstance';

const app = createApp(App);
import './assets/bootstrap.css';

// 导入axios
import axios from 'axios';

// 配置请求的根路径
axios.defaults.baseURL = 'https://www.escook.cn';
// 将axios挂载为全局的$http 自定义属性
app.config.globalProperties.$http = axios;

app.use(store).use(router).mount('#app');
